<?php

namespace App\Http\Requests\Api\V1;

class WeappUserRequest extends FormRequest
{
    public function rules()
    {
        return [
            'code' => 'required|string',
            'iv'   => 'required|string',
            'encryptedData' => 'required|string',
        ];
    }

    public function attributes()
    {
        return [
            'code'      => '授权码',
            'iv'        => '微信签名',
            'encryptedData' => '加密信息',
        ];
    }
}
